package com.nativetalk.bean.message.system;

import java.sql.Timestamp;

/**
 * Created by lizhun on 16/8/26.
 */
public class TdNtSystemMessage {


    private Integer sys_mes_id; //系统消息ID
    private String sys_mes_title;//标题
    private String sys_mes_url;//内容
    private String sys_mes_banner;//封面图片
    private Timestamp sys_publish_time;//添加时间
    private Integer sys_mes_type; //系统消息类型  1:学生端系统消息  2：老师端系统消息   3：老师端上课前预约消息
    public Integer reserve_id;//预约ID
    private String cou_name;    //课程名
    private String memb_name;   //会员名
    private String memb_head_portrait;  //会员头像
    private Timestamp reserve_start_time;   //课程开始时间
    private Timestamp reserve_end_time;     //课程结束时间
    private Integer state;     //预约状态   1待上课 2已完成 3已取消

    public Integer getSys_mes_type() {
        if(reserve_id != null && reserve_id != 0){
            return 3;
        }
        return sys_mes_type;
    }

    public void setSys_mes_type(Integer sys_mes_type) {
        this.sys_mes_type = sys_mes_type;
    }

    public Integer getSys_mes_id() {
        return sys_mes_id;
    }

    public void setSys_mes_id(Integer sys_mes_id) {
        this.sys_mes_id = sys_mes_id;
    }

    public String getCou_name() {
        return cou_name;
    }

    public void setCou_name(String cou_name) {
        this.cou_name = cou_name;
    }

    public String getMemb_name() {
        return memb_name;
    }

    public void setMemb_name(String memb_name) {
        this.memb_name = memb_name;
    }

    public String getMemb_head_portrait() {
        return memb_head_portrait;
    }

    public void setMemb_head_portrait(String memb_head_portrait) {
        this.memb_head_portrait = memb_head_portrait;
    }

    public Timestamp getReserve_start_time() {
        return reserve_start_time;
    }

    public void setReserve_start_time(Timestamp reserve_start_time) {
        this.reserve_start_time = reserve_start_time;
    }

    public Timestamp getReserve_end_time() {
        return reserve_end_time;
    }

    public void setReserve_end_time(Timestamp reserve_end_time) {
        this.reserve_end_time = reserve_end_time;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getReserve_id() {
        return reserve_id;
    }

    public void setReserve_id(Integer reserve_id) {
        this.reserve_id = reserve_id;
    }

    public String getSys_mes_url() {
        return sys_mes_url;
    }
    public void setSys_mes_url(String sys_mes_url) {
        this.sys_mes_url = sys_mes_url;
    }



    public String getSys_mes_title() {
        return sys_mes_title;
    }

    public void setSys_mes_title(String sys_mes_title) {
        this.sys_mes_title = sys_mes_title;
    }



    public String getSys_mes_banner() {
        return sys_mes_banner;
    }

    public void setSys_mes_banner(String sys_mes_banner) {
        this.sys_mes_banner = sys_mes_banner;
    }

    public Timestamp getSys_publish_time() {
        return sys_publish_time;
    }

    public void setSys_publish_time(Timestamp sys_publish_time) {
        this.sys_publish_time = sys_publish_time;
    }
}
